<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2017. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../../../book.css" charset="ISO-8859-1" type="text/css">
<title>Run Menu Actions</title>
</head>
<body>
<h1>Run Menu Actions</h1>
<p>The <strong>Run Menu</strong>, found on the main menu of the <strong>Eclipse</strong> workbench contains all of the actions required run, debug, step through code and work with breakpoints. Different parts of the<br>
  menu are visible at different times, as each <a href="../../../concepts/concept-java-perspective.htm">perspective</a> can be customized to show only specific capabilities.</p>
<p>The <strong>Run Menu </strong>commands. </p>
<table border="1" cellpadding="5" cellspacing="0" summary="The actions available in the Run Menu">
  <caption>
  Run Menu Commands
  </caption>
  <thead>
    <tr>
      <th width="71" colspan="1" rowspan="1"> <p> Command </p></th>
      <th width="215" colspan="1" rowspan="1"> <p> Name </p></th>
      <th width="862" colspan="1" rowspan="1"> <p> Description </p></th>
      <th width="118" colspan="1" rowspan="1"> <p> Shortcut </p></th>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/obj16/jexception_obj.svg" alt="Add Java Exception Breakpoint"></td>
      <td colspan="1" valign="top" align="left"><a href="../../views/breakpoints/ref-addexception_viewaction.htm"><strong>Add Java Exception Breakpoint</strong></a> </td>
      <td colspan="1" valign="top" align="left">Opens the Add Java Exception dialog to select the exception breakpoint type to create </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/obj16/class_obj.svg" alt="Add Class Load Breakpoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-add_class_load_breakpoint.htm">Add Class Load Breakpoint </a></strong></td>
      <td colspan="1" valign="top" align="left">Opens the Select Type dialog to select the Java type to add a class load breakpoint to </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/elcl16/all_instances.svg" alt="All Instances"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/views/shared/ref-allinstances.htm">All Instances...</a></strong> </td>
      <td colspan="1" valign="top" align="left">Displays all of the instances of the selected type in the current VM in a popup (only available with a Java 1.6 VM) </td>
      <td>Ctrl + Shift + N </td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/elcl16/all_references.svg" alt="All References"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/views/shared/ref-allreferences.htm">All References...</a></strong></td>
      <td colspan="1" valign="top" align="left">Displays all of the references of the selected type in the current VM in a popup (only available with a Java 1.6 VM)</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-debug_as.htm">Debug As</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Presents a sub menu of registered debug launch shortcuts. Launch shortcuts provide support for workbench or active editor selection sensitive launching.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td colspan="1" valign="top" align="left"><a href="../../../reference/menus/run/ref-debug_history.htm"><strong>Debug History </strong></a></td>
      <td colspan="1" valign="top" align="left">Presents a sub menu of the recent history of launch configurations launched in debug mode</td>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/debuglast_co.svg" alt="Debug Last Launched"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-dll_debug.htm">Debug Last Launched / Debug</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Allows you to quickly repeat the most recent launch in debug mode or to debug the current selection, if that mode is supported (based on your current launch settings).</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>F11</p></td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/disp_sbook.svg" alt="Display"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/views/shared/ref-display.htm">Display</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Uses the Debug Shell view to show the result of evaluating the selected expression in the context of a stack frame or variable in that thread. If the current active part is a Java Snippet Editor, the result is displayed there.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Ctrl + Shift + D</p></td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/run_sbook.svg" alt="Execute"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/views/shared/ref-execute.htm">Execute</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Within the context of the Java snippet editor, this command allows you to evaluate an expression but does not display a result.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Ctrl + E</p></td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/views/shared/ref-forcereturn.htm">Force Return</a></strong> </td>
      <td colspan="1" valign="top" align="left">Forces the current method to return with the specified value </td>
      <td colspan="1" valign="top" align="left">Alt + Shift + F </td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/insp_sbook.svg" alt="Inspect"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/views/shared/ref-inspect.htm">Inspect</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Uses the Expressions view to show the result of inspecting the selected expression or variable in the context of a stack frame or variable in that thread.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Ctrl + Shift + I</p></td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/debug_exc.svg" alt="Open Debug Dialog"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-open_debug_dialog.htm">Open Debug Dialog...</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>This command opens the launch configuration dialog to manage debug mode launch configurations.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/run_exc.svg" alt="Open Run Dialog"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-open_run_dialog.htm">Open Run Dialog...</a> </strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Opens the launch configuration dialog to manage run mode launch configurations.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/rem_all_co.svg" alt="Remove All Breakpoints"></td>
      <td colspan="1" valign="top" align="left"><a href="../../views/breakpoints/ref-removeall_viewaction.htm"><strong>Remove All Breakpoints</strong> </a></td>
      <td colspan="1" valign="top" align="left">Removes all of the breakpoints from the current workspace </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/resume_co.svg" align="middle"  alt="Resume"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong> <a href="../../views/debug/ref-resume.htm">Resume</a> </strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Resumes a suspended thread. </p></td>
      <td>F8</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-run_as.htm">Run As</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Presents a sub menu of registered run launch shortcuts. Launch shortcuts provide support for workbench or active editor selection sensitive launching.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-run_history.htm">Run History</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Presents a sub menu of the recent history of launch configurations launched in run mode</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/runlast_co.svg" alt="Run Last Launched"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-rll_run.htm">Run Last Launched / Run</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Allows you to quickly repeat the most recent launch in run mode or quickly run the selected resource, if that mode is supported (based on your current launch settings). </p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Ctrl + F11</p></td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/runtoline_co.svg" alt="Run To Line"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-run_to_line.htm">Run To Line</a></strong> </td>
      <td colspan="1" valign="top" align="left">Executes the program to the currently selected line in the editor </td>
      <td>Ctrl + R </td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/stepinto_co.svg" alt="Step Into"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> <a href="../../views/debug/ref-stepinto.htm"><strong>Step Into</strong></a> </p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Steps into the current statement. </p></td>
      <td>F5</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left">&nbsp;</td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-step_into_selection.htm">Step Into Selection</a> </strong></td>
      <td colspan="1" valign="top" align="left">Steps into the selected statement in the editor </td>
      <td>Ctrl + F5 </td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/stepover_co.svg" alt="Step Over"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong> <a href="../../views/debug/ref-stepover.htm">Step Over </a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Steps over the highlighted statement. Execution will continue 
          at the next line either in the same method or (if you are at the end of 
          a method) it will continue in the method from which the current method 
          was called. </p>
        <p> The cursor jumps to the declaration of the method and selects this line. </p></td>
      <td>F6</td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/stepreturn_co.svg" alt="Step Return"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> <a href="../../views/debug/ref-stepreturn.htm"><strong>Step  Return</strong></a> </p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Steps out of the current method. This option stops execution 
          after exiting the current method. </p></td>
      <td>F7</td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/suspend_co.svg" alt="Suspend"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong> <a href="../../views/debug/ref-suspend.htm">Suspend</a> </strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Suspends the selected thread of a target so that you can 
          browse or modify code, inspect data, step, and so on. </p></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/terminate_co.svg" alt="Terminate"> </td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong> <a href="../../views/debug/ref-terminate.htm">Terminate</a> </strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p> Terminates the selected debug target. </p></td>
      <td>Ctrl + F2 </td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/obj16/brkp_obj.svg" alt="Toggle Breakpoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-toggle_breakpoint.htm">Toggle Breakpoint </a></strong></td>
      <td colspan="1" valign="top" align="left">Toggles the appropriate type of breakpoint based on what is currently selected </td>
      <td>Ctrl + Shift + B </td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/obj16/brkp_obj.svg" alt="Toggle Tracepoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-toggle_breakpoint.htm">Toggle Tracepoint </a></strong></td>
      <td colspan="1" valign="top" align="left">Toggles the conditional breakpoint using the "systrace" template, which prints the class and method name </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/obj16/brkp_obj.svg" alt="Toggle Breakpoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-toggle_line_breakpoint.htm">Toggle Line Breakpoint</a> </strong></td>
      <td colspan="1" valign="top" align="left">Toggles a line breakpoint on the current executable line of code </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/obj16/brkp_obj.svg" alt="Toggle Breakpoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-toggle_method_breakpoint.htm">Toggle Method Breakpoint</a> </strong></td>
      <td colspan="1" valign="top" align="left">Toggles a method breakpoint on the currently selected method declaration </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/obj16/readwrite_obj.svg" alt="Toggle Watchpoint"></td>
      <td colspan="1" valign="top" align="left"><strong><a href="../../../reference/menus/run/ref-toggle_watchpoint.htm">Toggle Watchpoint</a> </strong></td>
      <td colspan="1" valign="top" align="left">Toggles a watchpoint on the currently selected field </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.debug.ui/elcl16/stepbystep_co.svg" alt="Use Step Filters"> </td>
      <td colspan="1" valign="top" align="left"><a href="../../views/debug/ref-usestepfilters.htm"><strong>Use Step Filters</strong></a></td>
      <td colspan="1" valign="top" align="left">Toggles 
        step filters on/off. When on, all step functions apply step filters.</td>
      <td>Shift + F5 </td>
    </tr>
    <tr>
      <td colspan="1" valign="top" align="left"><img src="../../../images/org.eclipse.jdt.debug.ui/etool16/watch_exp.svg" alt="Watch" width="16" height="16"></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p><strong><a href="../../../reference/menus/run/ref-addwatch.htm">Watch</a></strong></p></td>
      <td rowspan="1" colspan="1" valign="top" align="left"><p>Used to create a watch item. A watch item is an expression in the Expressions view whose value is updated as you debug.</p></td>
      <td rowspan="1" colspan="1" valign="top" align="left">&nbsp;</td>
    </tr>
  </tbody>
</table>
<h3 class="related">Related concepts</h3>
  <a href="../../../concepts/cdebugger.htm">Debugger</a><br>
  <a href="../../../concepts/concept-jdt.htm">Java development tools (JDT)</a><br>
  <a href="../../../concepts/clocdbug.htm">Local Debugging</a><br>
  <a href="../../../concepts/cremdbug.htm">Remote Debugging</a>
<h3 class="related">Related tasks</h3>
  <a href="../../../tasks/task-running_and_debugging.htm">Running and Debugging</a><br>
  <a href="../../../tasks/task-remotejava_launch_config.htm">Connecting to a remote VM with the Remote Java application launch configuration</a><br>
  <a href="../../../tasks/task-add_line_breakpoints.htm">Adding Line breakpoints</a><br>
  <a href="../../../tasks/task-set_method_breakpoints.htm">Setting method breakpoints</a><br>
  <a href="../../../tasks/task-catching_exceptions.htm">Catching exceptions</a>
<h3 class="related">Related references</h3>
  <a href="../../preferences/run-debug/ref-run_debug.htm">Debug Preferences</a><br>
  <a href="../../ref-toolbar-run.htm">Run and Debug toolbar actions</a>
</body>
</html>
